<layout name='Layout/layout_page' />
<script type="text/javascript">
function jumpUrl(){
  v = document.getElementById("companyID").options[document.getElementById("companyID").selectedIndex].value;
  url="<{:U('Job/index')}>&companyID=" + v;
  window.location.href=url;
}
</script>

	<ol class="breadcrumb">
		<li><a href="<{:U('Job/index')}>">招聘管理</a></li>
		<li class="active">列表</li>
	</ol>


	<form class="form-inline" method="get" action="index.php">
		<div class="form-group">
    		<label>企业：</label>
    		<select name="companyID" id="companyID" class="form-control input-sm" onchange="jumpUrl()">
				<option value="">全部</option>
				<volist name="company" id="vo">
		        <option value="<{$vo.id}>"><{$vo.name}></option>
				</volist>
			</select>
  		</div>
  		<div class="form-group">
    		<label>关键词：</label>
    		<input type="text" class="form-control input-sm" name="keyword" value="<{$keyword}>">
  		</div>
		<button type="submit" class="btn btn-default btn-sm">搜索</button>
		<a class="btn btn-default btn-sm" href="<{:U('Job/index')}>">重置</a>
		<a class="btn btn-info btn-sm" href="<{:U('Job/add')}>">新增招聘</a>
		<input type="hidden" name="g" value="Admin" />
		<input type="hidden" name="m" value="Job" />
		<input type="hidden" name="a" value="index" />
	</form>

	<p></p>
	
	<form id="ajaxForm" method="post" action="<{:U('Job/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-hover table-bordered" border="0" cellSpacing="0" cellPadding="0" width="100%">
		<THEAD>
			<tr>
		  		<TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> 全选</TH>
				<TH>id</TH>
				<TH>招聘职位</TH>
				<TH>用工单位</TH>
				<TH>薪酬</TH>
				<TH>报名人数</TH>
				<TH>属性</TH>
				<TH>状态</TH>
				<TH>添加日期</TH>
				<TH>更新日期</TH>
				<TH>操作</TH>
			</tr>
	  	</THEAD>
	  	<TBODY>             
			<volist name="list" id="vo">
			<tr>
			  <td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>" id="<{$vo.id}>"></td>
              <td><{$vo.id}></td>
              <td><{$vo.name}></td>
              <td><{$vo.company}></td>
              <td>￥<{$vo.money}>元</td>
              <td><{$vo.num}> 人 <a href="#">查看</a></td>
              <td>
              <eq name="vo.top" value="1"><font color="blue">顶</font></eq>
              <eq name="vo.jiaji" value="1"><font color="#f00">急</font></eq>
              </td>
              <td><eq name="vo.show" value="0">显示<else/><font color="#f00">隐藏</font></eq></td>
              <td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
              <td><{$vo.updateTime|date='Y-m-d H:i:s',###}></td>
			  <td>
			  	<a href="<{:U('Job/edit' , array('id'=>$vo['id']))}>" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-edit"></i> 编辑</a>
			  </td>
			</tr>
			</volist>
	  	</TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<button class="btn btn-info btn-sm" onClick="if(!confirm('删除后不可恢复！确定吗？'))return false;"><i class="glyphicon glyphicon-trash"></i> 删除选中信息</button>
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

<script type="text/javascript">
$("#companyID").val("<{$companyID}>");
</script>

<input type="hidden" id="menu_action" value="job" />